/**
 * Generate time : 2011-06-22 13:02:12
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * VZMCA13
 * 
 */
public class VZMCA13 extends DaoEPBase {

	private String fdKeyId = " ";
	private String fdResponseDepartmentId = " ";
	private String fdDate = " ";
	private String fdWorknum = " ";
	private String fdPlace = " ";
	private String fdClassify = " ";
	private String fdSourceClassify = " ";
	private String fdWorkface = " ";
	private String fdDepartmentName = " ";
	private String fdDepartmentLevel = " ";
	private String fdParentDepartmentId = " ";

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponseDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDate");
		eiColumn.setFieldLength(19);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorknum");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlace");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSourceClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorkface");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentName");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentLevel");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdParentDepartmentId");
		eiColumn.setFieldLength(300);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public VZMCA13() {
		initMetaData();
	}

	/**
	 * get the fdKeyId
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdResponseDepartmentId
	 * 
	 * @return the fdResponseDepartmentId
	 */
	public String getFdResponseDepartmentId() {
		return this.fdResponseDepartmentId;
	}

	/**
	 * set the fdResponseDepartmentId
	 */
	public void setFdResponseDepartmentId(String fdResponseDepartmentId) {
		this.fdResponseDepartmentId = fdResponseDepartmentId;
	}

	/**
	 * get the fdDate
	 * 
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}

	/**
	 * set the fdDate
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}

	/**
	 * get the fdWorknum
	 * 
	 * @return the fdWorknum
	 */
	public String getFdWorknum() {
		return this.fdWorknum;
	}

	/**
	 * set the fdWorknum
	 */
	public void setFdWorknum(String fdWorknum) {
		this.fdWorknum = fdWorknum;
	}

	/**
	 * get the fdPlace
	 * 
	 * @return the fdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}

	/**
	 * set the fdPlace
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}

	/**
	 * get the fdClassify
	 * 
	 * @return the fdClassify
	 */
	public String getFdClassify() {
		return this.fdClassify;
	}

	/**
	 * set the fdClassify
	 */
	public void setFdClassify(String fdClassify) {
		this.fdClassify = fdClassify;
	}

	/**
	 * get the fdSourceClassify
	 * 
	 * @return the fdSourceClassify
	 */
	public String getFdSourceClassify() {
		return this.fdSourceClassify;
	}

	/**
	 * set the fdSourceClassify
	 */
	public void setFdSourceClassify(String fdSourceClassify) {
		this.fdSourceClassify = fdSourceClassify;
	}

	/**
	 * get the fdWorkface
	 * 
	 * @return the fdWorkface
	 */
	public String getFdWorkface() {
		return this.fdWorkface;
	}

	/**
	 * set the fdWorkface
	 */
	public void setFdWorkface(String fdWorkface) {
		this.fdWorkface = fdWorkface;
	}

	/**
	 * set the fdDepartmentName
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}

	/**
	 * get the fdDepartmentLevel
	 * 
	 * @return the fdDepartmentLevel
	 */
	public String getFdWDepartmentName() {
		return this.fdDepartmentName;
	}

	/**
	 * set the fdDepartmentLevel
	 */
	public void setFdDepartmentLevel(String fdDepartmentLevel) {
		this.fdDepartmentLevel = fdDepartmentLevel;
	}

	/**
	 * get the fdDepartmentLevel
	 * 
	 * @return the fdDepartmentLevel
	 */
	public String getFdDepartmentLevel() {
		return this.fdDepartmentLevel;
	}

	/**
	 * set the fdParentDepartmentId
	 */
	public void setFdParentDepartmentId(String fdParentDepartmentId) {
		this.fdParentDepartmentId = fdParentDepartmentId;
	}

	/**
	 * get the fdParentDepartmentId
	 * 
	 * @return the fdParentDepartmentId
	 */
	public String getFdParentDepartmentId() {
		return this.fdParentDepartmentId;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdResponseDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponseDepartmentId")), fdResponseDepartmentId));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdWorknum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknum")), fdWorknum));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));
		setFdClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassify")), fdClassify));
		setFdSourceClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSourceClassify")), fdSourceClassify));
		setFdWorkface(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkface")), fdWorkface));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdDepartmentLevel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentLevel")), fdDepartmentLevel));
		setFdParentDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdParentDepartmentId")), fdParentDepartmentId));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdResponseDepartmentId", StringUtils.toString(fdResponseDepartmentId, eiMetadata.getMeta("fdResponseDepartmentId")));
		map.put("fdDate", StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));
		map.put("fdWorknum", StringUtils.toString(fdWorknum, eiMetadata.getMeta("fdWorknum")));
		map.put("fdPlace", StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));
		map.put("fdClassify", StringUtils.toString(fdClassify, eiMetadata.getMeta("fdClassify")));
		map.put("fdSourceClassify", StringUtils.toString(fdSourceClassify, eiMetadata.getMeta("fdSourceClassify")));
		map.put("fdWorkface", StringUtils.toString(fdWorkface, eiMetadata.getMeta("fdWorkface")));
		map.put("fdDepartmentName", StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));
		map.put("fdDepartmentLevel", StringUtils.toString(fdDepartmentLevel, eiMetadata.getMeta("fdDepartmentLevel")));
		map.put("fdParentDepartmentId", StringUtils.toString(fdParentDepartmentId, eiMetadata.getMeta("fdParentDepartmentId")));

		return map;

	}
}